package C_Paper;

import java.math.BigInteger;
import java.util.Arrays;
import java.util.Scanner;

public class C100_5 {
    // 找座位
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String x = sc.next();
        int num = 0;
        char[] chars = x.toCharArray();
        if (chars[0] == '0' && chars[1] == '0') {
            num++;
            chars[0] = '1';
        }
        for (int i = 1; i < chars.length - 1; i++) {
            if (chars[i] == '0' && chars[i-1] == '0' && chars[i+1] == '0'){
                num++;
                chars[i] = '1';
            }
        }
        if (chars[chars.length - 1] == '0' && chars[chars.length - 2] == '0') {
            num++;
            chars[chars.length - 1] = '1';
        }
        System.out.println(chars);
        System.out.println(num);
    }
}
